<?php get_header(); ?>
<div class="wrap">
	<div class="main">
<?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
		<div class="box post-page">
			<h1><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><?php edit_post_link('编辑','<span class="edit">','</span>'); ?></h1>
			<div class="info"><?php the_author_posts_link(); ?> @ <?php the_category(' , '); ?><?php the_tags(' 标签:',',',''); ?> , <?php the_time('Y-n-j'); ?> , <?php if (!in_category("1")): ?>浏览<?php the_views(); ?>次 , <?php endif;?><?php comments_popup_link('暂无评论', '1条评论', '%条评论', '', '评论已关闭'); ?></div>
			<div class="content">
<?php the_content(); ?>
				<div class="share">
<!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
        <a class="bds_qzone"></a>
        <a class="bds_tsina"></a>
        <a class="bds_tqq"></a>
        <a class="bds_renren"></a>
        <span class="bds_more">更多</span>
		<a class="shareCount"></a>
    </div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=481248" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
	document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();
</script>
<!-- Baidu Button END -->
				</div>
			</div>
<script type="text/javascript" defer="defer" charset="utf-8">
	(function(d,t) {
		window.huaban_minWidth = 280;
		window.huaban_minHeight = 280;
		var appendScript = function() {
		var a    = d.createElement('script');
		a.id     = 'huaban_share_script';
		a.async  = true;
		a.setAttribute('charset','utf-8');
		a.src    = 'http://huaban.com/js/pinmarklet.js?' + Math.floor(+new Date/1E7);
		var s    = d.getElementsByTagName(t)[0];
		s.parentNode.insertBefore(a, s);
		}
		if (window.attachEvent) {
			window.attachEvent('onload', function(){setTimeout(appendScript, 1000);});
		} else {
			appendScript();
		}
	})(document, 'script');
</script>
			<div id="LinkSpread" class="spread"></div>
			<div class="page-control">
				<?php previous_post_link('<p class="prev">上一篇: %link</p>');?>
				<?php next_post_link('<p class="next">下一篇: %link</p>');?>
			</div>
			<div class="spread" id="PageSpread"><script type="text/javascript">BAIDU_CLB_fillSlot("290520");</script></div>
<?php comments_template(); ?>
		</div>
<?php else : ?>
		<p>没有内容…</p>
<?php endif; ?>
	</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>